package com.shoppingcart.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 *
 * @author guanfenga@yonyou.com
 * @since 2023-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mall_shoppingcart")
public class Shoppingcart implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 购物车ID
     */
    @TableField("shopCartID")
    private String shopCartID;

    /**
     * 客户ID
     */
    @TableField("customerId")
    private String customerId;

    /**
     * 商品ID
     */
    @TableField("productId")
    private Integer productId;

    /**
     * 店铺ID
     */
    @TableField("shopInfoId")
    private Integer shopInfoId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("stockUpDate")
    private String stockUpDate;

    private String sku;

    private BigDecimal discount;

    /**
     * 门店名称
     */
    @TableField("branchName")
    private String branchName;

    /**
     * 价格快照
     */
    @TableField("priceSnapshot")
    private BigDecimal priceSnapshot;


    private String productName;

}
